package com.ruoyi.project.system.domain.vo;

import com.ruoyi.project.system.domain.SiyuEnable;
import com.ruoyi.project.system.domain.SiyuProduct;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
public class ProductEnableVo extends SiyuEnable {

    private String name;

    private String defaultAvailable;

    private String defaultNoAvailableMsg;

    private String defaultShow;

    public ProductEnableVo(SiyuProduct siyuProduct) {
        this.setProductId(siyuProduct.getId());
        this.name = siyuProduct.getName();
        this.defaultAvailable = siyuProduct.getDefaultAvailable();
        this.defaultNoAvailableMsg = siyuProduct.getDefaultNoAvailableMsg();
        this.defaultShow = siyuProduct.getDefaultShow();
    }

}
